var isTouch = "ontouchend" in document;
if(isTouch){
    $('body').addClass('wap');
    $('.close').appendTo('.inner-top');
    $('.logo').appendTo('.inner-top');
}




var setResize = function () {
    var w = $(window).width();
    if (w > 1300) {
        $('.main').css({ 'postion': 'releative', 'width': '1300px' });
        var s = w / 1300;
        $('.main').css({
            'postion': 'releative'
            , 'width': '1300px'
            , 'transform': 'scale(' + s + ')',
            'transform-origin': '50% 0', 'left': 0
        });

      
    } else {
        $('.main').css({ 'width': 'auto', 'transform': 'scale(1)' });
    }

    var s2 = w / 1200;

    $('.menu-c').css({
        'transform': 'scale(' + s2 + ')'
    });
};
setResize();
$(window).resize(function () {
    setResize();
});